package com.kandinfo.survey.common.repository;

import org.springframework.data.jpa.repository.Query;

import com.kandinfo.base.common.repository.BaseRepository;
import com.kandinfo.survey.common.domain.PatientInfo;

public interface PatientInfoRepository extends BaseRepository<PatientInfo, Long> {

    @Query(value = "select * from patient_info where patient_id=?1 and status='1' ", nativeQuery = true)
    PatientInfo findByPatientId(Long patientId);
    
}
